/* ==========================================
   3. HERO Y GRILLA DE PRODUCTOS (CORREGIDO)
   ========================================== */
#hero {
  min-height: 60vh; /* Cambiamos height por min-height para que crezca si es necesario */
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.8), rgba(0, 85, 128, 0.9)), 
              url('imagen/Logo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 2rem;
  padding: 40px 20px; /* Añadimos espacio para que no toque los bordes en móvil */
}

.hero-text {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 2rem; /* Reducimos un poco el padding */
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 90%;      /* Asegura que no sea más ancho que la pantalla */
  max-width: 600px; /* Evita que se vea demasiado ancho en PC */
}

.hero-text h1 {
  font-size: clamp(2rem, 8vw, 3.5rem); /* Ajusta el tamaño del título según la pantalla */
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 15px;
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

#productos-main { scroll-margin-top: 110px; }

.section-header {
  grid-column: 1 / -1; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  margin: 20px 0 10px 0;
  scroll-margin-top: 110px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 153, 255, 0.1);
  border-color: var(--primary);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 8px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
}

.product-subtitle {
    font-size: 0.9rem;
    color: #666; /* Un color gris para que resalte menos que el título */
    margin-bottom: 10px;
    font-style: italic;
}